  var 	roledata={};//
	    roledata.upvalidate;
	    roledata.ids='';
	    roledata.upset;
	    roledata.importset;
	    roledata.upNodes=[];
	    roledata.importNodes=[];


			
		roledata.importset = {
		isSimpleData: true,
		treeNodeKey: "id",
		treeNodeParentKey: "pId",
		fontCss: setFontimport,
		expandSpeed : "",
		callback: {			
			click: roleimportzTreeOnClick
		}
	}
  	 
  	 
  	function setFontimport(treeId, treeNode) {
		if (treeNode && treeNode.isParent) {
			return {color: "blue"};
		} else {
			return null;
		}
	}
  	 
  	 function roleimportzTreeOnClick(event, treeId, treeNode) {
		if (treeNode) {
			var cityObj = $("#role_higherId_add");
			cityObj.attr("value", treeNode.name);
			$("#role_higherId_index_import").val(treeNode.id);
			hideroleMenu_import();
		}
	}

	function rolezreloadimportTree() {	
		hideroleMenu_import();
		$("#role_Menu_import").zTree(roledata.importset, roledata.importNodes);
	}

	function showroleMenu_import() {

	     $("#role_import_dm").css({left:"129px", top: "31px"}).slideDown("fast");
	}

	
	function hideroleMenu_import() {
		$("#role_import_dm").fadeOut("fast");
	}
	
	
//****************************************************************************************


	
		roledata.upset = {
		isSimpleData: true,
		treeNodeKey: "id",
		treeNodeParentKey: "pId",
		fontCss: setFontup,
		expandSpeed : "",
		callback: {			
			click: roleupsetzTreeOnClick
		}
	}
  	 
  	 
  	function setFontup(treeId, treeNode) {
		if (treeNode && treeNode.isParent) {
			return {color: "blue"};
		} else {
			return null;
		}
	}
  	 
  	 function roleupsetzTreeOnClick(event, treeId, treeNode) {
		if (treeNode) {
			var cityObj = $("#role_higherId_up");
			cityObj.attr("value", treeNode.name);
			$("#role_higherId_index_up").val(treeNode.id);
			hideroleMenu_up();
		}
	}

	function rolezreloadimportTreeup() {	
		hideroleMenu_up();
		$("#role_Menu_up").zTree(roledata.upset, roledata.upNodes);
	}

	function showroleMenu_up() {	
	     $("#role_import_up").css({left:"129px", top: "31px"}).slideDown("fast");
	}

	
	function hideroleMenu_up() {
		$("#role_import_up").fadeOut("fast");
	}
	
	
	
	
	
	
	
	
	
	
	
	